package com.woniuxy.oldmanapi.mapper;

import com.woniuxy.oldmanapi.entity.Contract;
import com.woniuxy.oldmanapi.yvo.ContractVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;
@Repository
public interface ContractMapper extends Mapper<Contract> {
    List<ContractVo> initSelectAllByCons(String name);

    @Update("update contract set contractStatus = #{status} where id = #{id}")
    void modifyContractStatus(@Param("id") int id, @Param("status") int status);

    ContractVo selectContractById(int id);
}